<template>
  <a-config-provider :locale="zhCN" :theme="customTheme">
    <router-view />
  </a-config-provider>
</template>

<script setup>
import zhCN from "ant-design-vue/es/locale/zh_CN";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
import { customTheme } from "./utils/customTheme";
import { useUserStore } from './stores/user';

// const userStore = useUserStore();
// userStore.initializeUser();
// 设置 dayjs 的语言环境
dayjs.locale(zhCN.locale);
</script>

<style lang="less">
body {
  background-color: #222;
  background-size: cover;
}


</style>
